﻿using Max.PH4_2101A.ShoppingAdmin.FuXi.API.SecondWeekExam.Domain;
using Max.PH4_2101A.ShoppingAdmin.FuXi.API.SecondWeekExam.IRespository;
using Max.PH4_2101A.ShoppingAdmin.FuXi.API.SecondWeekExam.IService;

namespace Max.PH4_2101A.ShoppingAdmin.FuXi.API.SecondWeekExam.Service
{
    public class BrandService : IBrandService
    {
        IBrandRespository _respository;

        public BrandService(IBrandRespository respository)
        {
            _respository = respository;
        }

        public IQueryable<BrandModel> Query()
        {
            var data  = _respository.Query();
            return data;
        }
    }
}
